/**
 * 
 *//*
package com.cipe.cmrs.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cipe.cmrs.model.Subidentifier;
import com.cipe.cmrs.model.User;
import com.cipe.cmrs.util.DateUtil;

*//**
 * @author Incepio
 * 
 *//*
@Service
@Transactional
public class SubidentifierService extends BaseService<Subidentifier> {

	@Autowired
	private UserService userService;

	public Subidentifier saveSubidentifier(Subidentifier subidentifier, Integer userId) {
		if (subidentifier != null) {
			User user = userService.findById(userId);
			Subidentifier dbSubidentifier = findById(subidentifier.getId());
			if (dbSubidentifier == null) {
				dbSubidentifier = new Subidentifier();
				dbSubidentifier.setCreatedBy(user);
				dbSubidentifier.setCreationDate(DateUtil.getCurrentDate());
			}
			dbSubidentifier.setUpdatedBy(user);
			dbSubidentifier.setUpdationDate(DateUtil.getCurrentDate());
			return merge(dbSubidentifier);
		}
		return null;
	}
}
*/